//package com.geely.pma.climate.api.single
package com.wanghaibo.vgashow.api.single


//import com.geely.pma.climate.api.ICarFunctionOperation
import com.wanghaibo.vgashow.api.ICarFunctionOperation
import io.reactivex.SingleEmitter

/**
 * Name: SingleOperation
 *
 * Created by Wuhao on 2020/6/2
 *
 * Version: 0.0.1
 */
abstract class SingleOperation<T>(
    /**
     * emitter used to notify response
     */
    protected var emitter: SingleEmitter<T>
) : ICarFunctionOperation {

    override fun onInitFailed(throwable: Throwable) {
        emitter.onError(throwable)
    }

}